<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	 MasterPageFile="~/App_ThemeMasters/NoStyle/AdminOneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="ScsAspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->


<script runat="server">
	public string TitleFormat = "$company.name$ User Response Management";
</script>

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<%SecurityPrivilege = "AppFunctions.ManageArticles"; %>
    <div class="left"><h1><asp:Label ID="ImgCacheLibLbl" >User Survey Result</asp:Label></h1></div>
    <swf:BizProc ID="userResp" runat="server" FactoryName="surveyUserResultBP">
		<ParentBizProc id="loginBP" />
    </swf:BizProc>
    <swf:BizProc ID="formArt" runat="server" FactoryName="genericArticles">
		<State includeSelf="true" entireTree="false" listDetailLevel="idAndTitle" pushFormData="true" />
		<ParentBizProc id="userResp" fieldName="article.id" dataId="pid" />
		<ParentBizProc id="userResp" fieldName="formData" dataId="formData" />
    </swf:BizProc>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
	<table class="pageWidth" ><tr><td style="width:350px;">
    <div class="verticalbg"> 
	    <snc:Grid ID="articleList1Display" runat="server" Width="450px" Height="600px"  
		    ShowToolbar="false" 
		    ParentBizProcIds="userResp" 
		    Mode="LiveScrolling" 
		    Resizable="Both" 
		    SelectionMode="Single">
		    <Columns>
			    <ntb:KeyColumn DataField="id" />
			    <ntb:BoundColumn DataField="article.name" HeaderText="Form Name" width="300" />
			    <ntb:DateColumn DataField="lastUpdated" HeaderText="Date" Width="100" />
			    <ntb:BoundColumn DataField="user.userName" HeaderText="User" Width="1" Visible="false" />
		    </Columns>
	    </snc:Grid>
    </div>
</td><td>
        <art:ArticleTranslationDisplay runat="server" ID="ad1"
	        ParentBizProcIds="formArt" 
	        ReadOnlyTemplate="Articles.Gui.AspNet.ArticleRODisplay">
	        <macros imageRes="Thumbnail" />
        </art:ArticleTranslationDisplay>
</td></tr></table>    
</asp:Content>
